using ZoneFiveSoftware.Common.Data.Fitness;
using ZoneFiveSoftware.Common.Data.GPS;
using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;

using System;
using System.Collections.Generic;
using System.Text;

namespace FTPPlugin.Export
{
    class ExtendExport : IExtendActivityExportActions
    {
        #region IExtendActivityExportActions Members

        public IList<IAction> GetActions(IList<IActivity> activities)
        { // multiple activities selected
            return new IAction[] {
                new ExportActivityFTP(activities)
            };
        }

        public IList<IAction> GetActions(IActivity activity)
        { // one activity selected
            if (activity == null || activity.GPSRoute == null || activity.GPSRoute.Count == 0) return null;

            return new IAction[] {
                new ExportActivityFTP(activity)
            };
        }

        #endregion
    }
}
